# eMHub

## Getting Started

Make sure you are using a virtual environment of some sort (e.g. `virtualenv` or
`pyenv`).

Prequisites:
Python3 (must be run with python3)
Postgresql (database config
	    "default": {
        'ENGINE':'django.db.backends.postgresql_psycopg2',
        'NAME': 'mysite',
        'USER': 'admin',
        'PASSWORD': 'password123',
        'HOST': 'localhost',
        'PORT':'5432',
        }
        ##can be adjusted accordingly to backend config, the settings.py file needs to be changed, if so)


## Intallation and running application
```
pip3 install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py loaddata sites
python3 manage.py runserver [$IP[:$PORT]]
```

## Integration of Open Source Apps
django-user-accounts
-Django package to help with the Users and Groups integration
django-social-auth
-Django package to help with authentication of Users
pinax-theme-boostrap
-a simple and easy base for our front end

## Further notes
In html files, { } defines a python-django call for injection
i.e. {% load staticfiles %}, {$ url 'some_url' %}, etc.

{% block %} defines a block that can be extended in another file
and dynamically replaced if a block occurs in that document {% endblock %}